#define _CRT_SECURE_NO_WARNINGS
class Solution {
public:
    bool isSubsequence(string s, string t) {
        if (s.size() > t.size() || t.size() == 0 && s.size() != 0) return false;
        auto it1 = s.begin(), it2 = t.begin();
        while (it1 != s.end() && it2 != t.end())
        {
            if (*it1 == *it2)
            {
                it1++;
            }
            it2++;
        }
        if (it1 == s.end()) return true;
        return false;

    }
};